import request from '@/utils/request';

//获取所有专业信息
export const getMajor=()=>{
  return request({
    method:'GET',
    url:'/admin/expschedule/major/get'
  })
}

//添加专业信息
export const addMajor=(data)=>{
  return request({
    method:'POST',
    url:'/admin/expschedule/major/save',
    data
  })
}

//删除专业信息
export const deleteMajor=(id)=>{
  return request({
    method:'DELETE',
    url:`/admin/expschedule/major/remove/${id}`
  })
}